import pandas as pd
s1 = pd.Series([1,'a',5.2,7])
print(s1)

s2 = pd.Series([1,'a',5.2,7], index=['a','b','c','d'])
print(s2)

s2.index[0]='A'#标签不能单个修改
s2.index=['A','B','C','D']
print(s2)



